{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static django_bootstrap5 tz %}
{% block title %}
    {% if minutes_sp %}
        Revise
    {% else %}
        Upload
    {% endif %}
    Minutes for {{ session.meeting }} : {{ session.group.acronym }}
{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        {% if minutes_sp %}
            Revise
        {% else %}
            Upload
        {% endif %}
        Minutes for {{ session.meeting }}
        <br>
        <small class="text-body-secondary">{{ session.group.acronym }}
            {% if session.name %}: {{ session.name }}{% endif %}
        </small>
    </h1>
    {% if session_number %}
        <h2>Session {{ session_number }} : {{ session.official_timeslotassignment.timeslot.time|timezone:session.meeting.time_zone|date:"D M-d-Y Hi" }}</h2>
    {% endif %}
    {% if future %}
    <p class="alert alert-warning my-3">
        Caution: Session has not ended yet
    </p>
    {% endif %}
    <form enctype="multipart/form-data" method="post" class="my-3">
        {% csrf_token %}
        {% bootstrap_form form %}
        <button type="submit" class="btn btn-primary">Upload</button>
    </form>
{% endblock %}